.phone-component-wrapper {
  overflow: hidden;

  max-width: calc(var(--max-width) - 32px);
  margin: 2px var(--horizontal-margin);
  padding: 4px 16px;
  border-radius: 8px;

  background-color: var(--bg-block);
  color: var(--text-color);

  line-height: 2.5;

  .header {
    min-height: 13px;

    color: var(--text-color);

    font-weight: 500;
    font-size: 19px;
    text-align: left;
  }

  .info-button {
    float: right;
    margin-top: 8px !important;
  }

  .info-icon {
    width: 100%;
    height: 100%;
  }

  .phone-icon {
    vertical-align: baseline;
    width: 24px;
    height: 24px;
    margin-right: 16px;
  }

  .info {
    display: flex;
    align-items: center;
  }

  .number {
    flex: 1 1 auto;

    font-weight: 500;
    font-size: 20px;
    line-height: 2;
    text-align: left;
  }

  .action {
    overflow: hidden;

    width: 28px;
    height: 28px;
    margin: 0 4px;
    border-radius: 14px;

    line-height: 1;

    .icon {
      width: 100%;
      height: 100%;
    }
  }
}

.phone-mask {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.phone-popup {
  // root-portal 不支持使用 CSS 变量

  z-index: 5000;

  display: flex;
  flex-direction: column;

  overflow: hidden;

  width: calc(100% - 48px);
  max-width: 520px;
  max-height: 90%;
  border-radius: 12px;

  background-color: #fff;
  color: #333;

  text-align: center;

  @media (prefers-color-scheme: dark) {
    background-color: #1c1c1e;
    color: #ccc;
  }

  .title {
    padding: 32px 24px 16px;
    font-weight: 700;
    font-size: 17px;
    line-height: 1.4;
  }

  .body {
    overflow-y: auto;

    margin-bottom: 32px;
    padding: 0 24px;

    color: #888;

    font-size: 17px;
    line-height: 1.7;
    word-wrap: break-word;

    -webkit-overflow-scrolling: touch;
  }

  .button {
    position: relative;

    display: block;

    overflow: hidden;

    padding: 16px 0;
    border-top: 1px solid #cccccf;

    font-weight: 700;
    font-size: 17px;
    line-height: 1.4;
    text-decoration: none;

    @media (prefers-color-scheme: dark) {
      border-top-color: #3a3a3d;
    }
  }
}
